QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
CONFIG += exception
#CONFIG += console
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    detector.cpp \
    main.cpp \
    mainwindow.cpp \
    yolov8.cpp

HEADERS += \
    detector.h \
    mainwindow.h \
    yolov8.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc

RC_ICONS = eye.ico
win32
{
#    message('运行win32版本')
#    INCLUDEPATH += E:\opencv452_Qt\install\include\
#                   E:\opencv452_Qt\install\include\opencv2
#    LIBS += -L E:\opencv452_Qt\install\x64\mingw\lib\libopencv_*.a

# #========================== opencv_gpu ==========================
#    INCLUDEPATH += D:\opencv455_cuda\install\include\
#                   D:\opencv455_cuda\install\include\opencv2

# #========================== openvino ==========================
#    INCLUDEPATH += "C:\Program Files (x86)\Intel\openvino_2022\runtime\include"

    #========================== opencv_cpu ==========================
    INCLUDEPATH += D:\onnxruntime-win-x64-1.16.3\include\

    INCLUDEPATH += D:\opencv_build\install\include\
                   D:\opencv_build\install\include\opencv2

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../opencv_build/install/x64/vc16/lib/ -lopencv_core452 -lopencv_imgcodecs452 -lopencv_imgproc452 -lopencv_video452  -lopencv_videoio452  -lopencv_objdetect452  -lopencv_shape452   -lopencv_dnn452  -lopencv_dnn_objdetect452 -lopencv_highgui452
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../opencv_build/install/x64/vc16/lib/ -lopencv_core452d -lopencv_imgcodecs452d -lopencv_imgproc452d -lopencv_video452d  -lopencv_videoio452d  -lopencv_objdetect452d  -lopencv_shape452d   -lopencv_dnn452d  -lopencv_dnn_objdetect452d -lopencv_highgui452d
    else:unix: LIBS += -L$$PWD/../../opencv_build/install/x64/vc16/lib/ -lopencv_core452

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../onnxruntime-win-x64-1.16.3/lib/ -lonnxruntime -lonnxruntime_providers_shared
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../onnxruntime-win-x64-1.16.3/lib/ -lonnxruntimed
    else:unix: LIBS += -L$$PWD/../../onnxruntime-win-x64-1.11.1/lib/ -lonnxruntime




}



#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../opencv455_cuda/install/x64/vc16/lib/ -lopencv_core455 -lopencv_imgcodecs455 -lopencv_imgproc455 -lopencv_video455  -lopencv_videoio455  -lopencv_objdetect455  -lopencv_shape455   -lopencv_dnn455  -lopencv_dnn_objdetect455 -lopencv_highgui455
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../opencv455_cuda/install/x64/vc16/lib/ -lopencv_core455d -lopencv_imgcodecs455d -lopencv_imgproc455d -lopencv_video455d  -lopencv_videoio455d  -lopencv_objdetect455d  -lopencv_shape455d   -lopencv_dnn455d  -lopencv_dnn_objdetect455d -lopencv_highgui455d
#else:unix: LIBS += -L$$PWD/../../opencv455_cuda/install/x64/vc16/lib/ -lopencv_core455


